    <section class="vote">
        <script src="http://recaptcha.net/recaptcha/api.js" async defer></script>
        <div class="vote_center">
            <div class="aside_left">
                <div class="column_name">
                    投票规则
                </div>
                <div class="vote_rule">
                    <?php                      
                        $id=get_the_ID();
                        echo get_post($id)->post_content;
                    ?>
                </div>
                <div class="column_name">
                    参赛视频
                </div>
                <div class="vote_video">
                    <!--
                        <li>
                            <div class="team_video"></div>
                            <p>团队名称：XXXX</p>
                            <div class="vote_msg">
                                <span class="vote_count">票数：23333</span>
                                <span class="vote_btn">投票</span>
                            </div>
                        </li>
                    -->
                        <?php get_poll(1); ?>

                </div>
            </div>
            <div class="aside_right">
                <div class="follow_slide">
                </div>
            </div>
        </div>
        <div class="check_overlay">
            <div class="check_main">
                <div class="check_head">
                    <span>请验证手机号</span>
                    <span class="give_up">×</span>
                </div>
                <div class="check_line1">
                    <input class="phone_num" placeholder="输入您的手机号" name="phone_number" type='number' /> 
                </div>
                <div class="check_line2">
                    <input class="check_code" placeholder="验证码" name="code" type='number' />

                    <button data-sitekey="6Lfw_20UAAAAAGHXHhH7ujhra1s3nw63TSHQCkrO" data-badge="inline" data-callback="check_msg" class="g-recaptcha" id="send_msg">发送验证码</button>
					<style type="text/css">
						.grecaptcha-badge {
							right: -2000px;
						}
					</style>
                </div>
                <div class="check_footer"><button  class="check_sure">点击验证</button></div>
                <!--<p>身份验证</p>
                <hr style="margin: 10px 0px">
                <div>手机号：<input class="phone_num" placeholder="输入您的手机号" name="phone_number" type='number' /><button id="send_msg">发送验证码</button></div>
                <div>验证码：<input class="check_code" placeholder="验证码" name="code" type='number' /></div>
                <div class="check_btn">
                    <button class="check_sure">确定</button>
                    <button class="give_up">取消</button>
                </div>-->
            </div>
        </div>
    </section>
    
    <script>
        var loop;
        var time=60;
        var video_arr=$(".team_video");
        var btn_arr=$(".vote_btn");
        var poll_id,poll_answer_id
        function sdu_vote(a,b){
            poll_id=a;
            poll_answer_id=b;
        }
        function check_msg(a){
            var number=$('.phone_num').val();
            if(number==''){
                alert("请输入正确形式手机号！");
                return;
            };
            $.ajax({
                url:'../message.php',
                type:'POST',
                data:{
                    phoneNumber:number,
                    'g-recaptcha-response':a
                },
                success:function(data){
                    data=JSON.parse(data);
                    if(data.errmsg=='OK'){
                        $("#send_msg").attr("disabled",true);
                        loop=setInterval(function(){
                            time--
                            $("#send_msg").html(time);
                        },1000);
                        setTimeout(function(){
                            clearInterval(loop);
                            $("#send_msg").html("发送验证码");
                            $("#send_msg").attr("disabled",false);
                        },time*1000+200);
                    }else if(data.errmsg){
                        alert(data.errmsg);
                    }else{
                        alert(data);
                    }
                },
                error:function(){
                    alert("网络故障，请稍后再试！");
                }
            })
            
        };
        $('.check_sure').on("click",function(){
            let number=$('.phone_num').val();
            let code=$('.check_code').val();//没错验证码在这
            if(code==''){
                alert('请输入验证码！');
                return;
            }
            $.ajax({
                url:'../verification.php',
                type:'POST',
                data:{
                    phoneNumber:number,
                    code:code,//正常应该是变量code
                    a_id:poll_answer_id,
                    q_id:poll_id
                },
                dataType:"JSON",
                success:function(data){
                    if(data.errmsg){
                        alert(data.errmsg);
                        window.location.reload();
                    }else{
                        alert(data);
                    }
                },
                error:function(){
                    alert("网络故障，请稍后再试！");
                }
            })
        })
        $(".give_up").click('click',function(){
            sdu_vote(0,0);
            $('.phone_num').val(null);
            $('.check_code').val(null);
            $("#send_msg").html("发送验证码");
            $("#send_msg").attr("disabled",false);
            clearInterval(loop);
            $('.check_overlay').hide();

        })
        for(let i=0;i<video_arr.length;i++){
            let answer_id=video_arr.eq(i).attr('id');
            let poll_id=btn_arr.eq(i).attr('id');
            btn_arr.eq(i).on("click",function(){
                $('.check_overlay').show();
                sdu_vote(poll_id,answer_id);
            })
        }
    </script>
    <script src="<?php bloginfo('template_directory'); ?>/js/slide_1.js"></script>